﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Samurai.Infrastructure
{
    public class Activity
    {
        public ActivityMode Mode { get; set; }

        public string Details { get; set; }

        public override string ToString()
        {
            switch (Mode)
            {
                case ActivityMode.Crawling:
                    return string.Format("Scanning Directory : {0}", Details);
                case ActivityMode.Fetching:
                    return string.Format("Extracting Movie Information : {0}", Details);
                case ActivityMode.NoAction:
                    return string.Format(Details);
                default:
                    throw new ArgumentOutOfRangeException();
            }
        }
    }

    public enum ActivityMode
    {
        Crawling = 0,
        Fetching = 1,
        NoAction = 2
    }
}
